package com.zzyl.serve.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("报警数据分页查询请求模型")
public class AlertDataPageReqDto {
    @ApiModelProperty(value = "页码", required = true, example = "1")
    private Integer pageNum;

    @ApiModelProperty(value = "页面大小", required = true, example = "10")
    private Integer pageSize;
    /**
     * 设备名称
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//时间格式化
    @Excel(name = "设备名称")
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//时间格式化
    @ApiModelProperty(value = "结束时间", required = false)
    private  LocalDateTime endTime;

    @ApiModelProperty(value = "主键ID")
    private Long id;
    @ApiModelProperty(value = "开始时间", required = false)
    private  LocalDateTime startTime;
    /**
     * 状态，0：待处理，1：已处理
     */
    @Excel(name = "状态，0：待处理，1：已处理")
    @ApiModelProperty(value = "状态，0：待处理，1：已处理")
    private Integer status;


}
